﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Blog.Models.Post>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Visualizar
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        <%: Html.ActionLink(Model.Title, "View", new { Id = Model.PostId })%>
    </h2>
    <p>
        <%: Model.Body%>
    </p>
    <p>
        <%: Html.ActionLink("Voltar para a listagem", "Index") %>
        |
        <%: Html.ActionLink("Adicionar um Comentário", "Create", new { Controller = "Comment", PostId = Model.PostId }) %></p>
    <% Html.RenderPartial("~/Plugins/Blog.dll/Blog.Views.Comment.List.ascx", Model.Comments); %>
</asp:Content>
